<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<div class="t_bar"><span class="color_red">*</span>首次立项扶持时科技团队核心成员情况</div>
<table id="firstTeamInfo" border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center" width="5%">选择</th>
        <th class="TblHead" align="center" width="5%">序号</th>
        <th class="TblHead" align="center" width="10%">姓名</th>
        <th class="TblHead" align="center" width="8%">性别</th>
        <th class="TblHead" align="center" width="10%">国籍</th>
        <th class="TblHead" align="center" width="14%">出生年月</th>
        <th class="TblHead" align="center" width="10%">学位</th>
        <th class="TblHead" align="center" width="14%">职称</th>
        <th class="TblHead" align="center" width="12%">职务</th>
        <th class="TblHead" align="center" width="12%">研究领域</th>
    </tr>
    </thead>
    <tbody id="tab">
    <tr style="display: none">
        <td align="center">
            <input type="radio" class="radiobutton" name="selteams">
        </td>
        <td align="center">
            <span name="teams|team[0][0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input name="teams|team[0][0]|name" label="姓名" type="text" class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <cpt:select id="gender_[index]" name="gender" key="gender" onChange="initControlValue(this.id)" value=""
                        className="common_select"></cpt:select>
            <input type="hidden" name="teams|team[0][0]|gender_value" value="" class="required" label="性别"/>
            <input type="hidden" name="teams|team[0][0]|gender_name" value=""/>
        </td>
        <td align="center">
            <input name="teams|team[0][0]|nationality" label="国籍" type="text" class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <input id="team_birth_date_[0][0]" name="teams|team[0][0]|birth_date" label="出生年月" value=""
                   class=" required input_css date beforeToday" style="width: 80px"/>
        </td>
        <td align="center">
            <input name="teams|team[0][0]|degree" label="学位" type="text" class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <cpt:tree key="prof_title" cacheable="false" className="input_css " readonly="true" value="" label="职称"
                      width="60%"
                      id="title[index]" name="title[0][0]" showPattern="current" shieldPattern="0" topCheckbox="false"
                      onClick="initTreeValue2"/>
            <input type="hidden" name="teams|team[0][0]|title_value" id="title[index]_value" class="required" value=""
                   label="职称"/>
            <input type="hidden" name="teams|team[0][0]|title_name" id="title[index]_name" value=""/>

        </td>
        <td align="center">
            <input name="teams|team[0][0]|post" label="职务" type="text" class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <input name="teams|team[0][0]|research" label="研究领域" type="text" class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
    </tr>
    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/teams/team" var="team">
        <c:choose>
            <c:when test="${index<10}">
                <c:set value="0" var="flag" scope="page"/>
            </c:when>
            <c:otherwise>
                <c:set value="" var="flag" scope="page"/>
            </c:otherwise>
        </c:choose>
        <tr>
            <td align="center">
                <input type="radio" class="radiobutton" name="selteams">
            </td>
            <td align="center">
                <span name="teams/team[${flag}${index}]@seq_no"><x:out select="$team/@seq_no"/></span>
            </td>

            <td align="center">
                <input name="teams/team[${flag}${index}]/name" label="姓名" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$team/name"/>"/>
            </td>
            <td align="center">
                <c:set var="gender"><x:out select='$team/gender_value'/></c:set>
                <cpt:select id="gender_${index}" name="gender" key="gender" onChange="initControlValue(this.id)"
                            value="${gender }" className="common_select"></cpt:select>
                <input type="hidden" name="teams/team[${flag}${index}]/gender_value"
                       value="<x:out select='$team/gender_value' />" class="required" label="性别"/>
                <input type="hidden" name="teams/team[${flag}${index}]/gender_name"
                       value="<x:out select='$team/gender_name' />"/>
            </td>
            <td align="center">
                <input name="teams/team[${flag}${index}]/nationality" label="国籍" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$team/nationality"/>"/>
            </td>
            <td align="center">
                <c:set var="birth_date" scope="page"><x:out select="$team/birth_date"/></c:set>
                <input id="team_birth_date_[${flag}${index}]" value="${birth_date}" label="出生年月" type="text"
                       name="teams/team[${flag}${index}]/birth_date" class="required input_css date beforeToday"
                       style="width: 80px"/>
            </td>
            <td align="center">
                <input name="teams/team[${flag}${index}]/degree" label="学位" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$team/degree"/>"/>
            </td>
            <td>
                <c:set var="title">{'id':'<x:out select="$team/title_value"/>','name':'<x:out
                        select="$team/title_name"/>'}</c:set>
                <cpt:tree key="prof_title" cacheable="false" className="input_css" readonly="true" value="${title}"
                          label="职称" width="60%"
                          id="title${flag}${index}" name="title${flag}${index}" showPattern="current" shieldPattern="0"
                          topCheckbox="false" onClick="initTreeValue2"/>
                <input type="hidden" id="title${flag}${index}_value" name="teams/team[${flag}${index}]/title_value"
                       class="required" value="<x:out select="$team/title_value" />" label="职称"/>
                <input type="hidden" id="title${flag}${index}_name" name="teams/team[${flag}${index}]/title_name"
                       value="<x:out select="$team/title_name" />"/>

            </td>

            <td align="center">
                <input name="teams/team[${flag}${index}]/post" label="职务" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$team/post"/>"/>
            </td>

            <td align="center">
                <input name="teams/team[${flag}${index}]/research" label="研究领域" type="text"
                       class="input_css required maxlength:100" style="width:80%;" maxlength="100"
                       value="<x:out select="$team/research"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("firstTeamInfo");
    </script>
</table>
<br/>
<table border="0" cellpadding="0" cellspacing="1">
    <tr>
        <td>
            <input class="button_02" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('firstTeamInfo',99,'首次立项扶持时科技团队核心成员情况最多只能填写99条')){addNewRow('firstTeamInfo');showDateTag('firstTeamInfo');}try{top.resizeFrame();}catch(e){};">
            <input class="button_02" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('firstTeamInfo','selteams')">
            <input class="button_02" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('firstTeamInfo','selteams')">
            <input class="button_02" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('firstTeamInfo','首次立项扶持时科技团队核心成员情况')">
        </td>
    </tr>
</table>
<br/>
<div class="t_bar">自首次立项扶持后团队核心成员变动情况（若无变动，不需填写）</div>
<table id="teamInfochange" border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center" width="4%">选择</th>
        <th class="TblHead" align="center" width="5%">序号</th>
        <th class="TblHead" align="center" width="8%">姓名</th>
        <th class="TblHead" align="center" width="6%">性别</th>
        <th class="TblHead" align="center" width="8%">国籍</th>
        <th class="TblHead" align="center" width="12%">出生年月</th>
        <th class="TblHead" align="center" width="8%">学位</th>
        <th class="TblHead" align="center" width="14%">职称</th>
        <th class="TblHead" align="center" width="10%">职务</th>
        <th class="TblHead" align="center" width="10%">研究领域</th>
        <th class="TblHead" align="center" width="5%">增或减</th>
        <th class="TblHead" align="center" width="10%">变动原因</th>
    </tr>
    </thead>
    <tbody id="tab1">
    <tr style="display: none">
        <td align="center">
            <input type="radio" class="radiobutton" name="changeselteams">
        </td>
        <td align="center">
            <span name="changeteams|changeteam[0][0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input name="changeteams|changeteam[0][0]|changename" label="姓名" type="text"
                   class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <cpt:select id="changegender_[index]" name="changegender" key="gender" onChange="initControlValue(this.id)"
                        value=""
                        className="common_select"></cpt:select>
            <input type="hidden" name="changeteams|changeteam[0][0]|changegender_value" value="" class="required"
                   label="性别"/>
            <input type="hidden" name="changeteams|changeteam[0][0]|changegender_name" value=""/>
        </td>
        <td align="center">
            <input name="changeteams|changeteam[0][0]|changenationality" label="国籍" type="text"
                   class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <input id="changeteam_birth_date_[0][0]" name="changeteams|changeteam[0][0]|changebirth_date" label="出生年月"
                   value=""
                   class=" required input_css date beforeToday" style="width: 65%"/>
        </td>
        <td align="center">
            <input name="changeteams|changeteam[0][0]|changedegree" label="学位" type="text"
                   class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <cpt:tree key="prof_title" cacheable="false" className="input_css " readonly="true" value="" label="职称"
                      width="60%"
                      id="changetitle[index]" name="changetitle[0][0]" showPattern="current" shieldPattern="0"
                      topCheckbox="false"
                      onClick="initTreeValue2"/>
            <input type="hidden" name="changeteams|changeteam[0][0]|changetitle_value" id="changetitle[index]_value"
                   class="required" value=""
                   label="职称"/>
            <input type="hidden" name="changeteams|changeteam[0][0]|changetitle_name" id="changetitle[index]_name"
                   value=""/>

        </td>
        <td align="center">
            <input name="changeteams|changeteam[0][0]|changepost" label="职务" type="text"
                   class="input_css required maxlength:100"
                   style="width: 55%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <input name="changeteams|changeteam[0][0]|changeresearch" label="研究领域" type="text"
                   class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <input name="changeteams|changeteam[0][0]|change" label="增或减" type="text"
                   class="input_css required maxlength:100"
                   style="width: 65%;" maxlength="100" value=""/>
        </td>
        <td align="center">
            <input name="changeteams|changeteam[0][0]|reason" label="变动原因" type="text"
                   class="input_css required maxlength:100"
                   style="width: 80%;" maxlength="100" value=""/>
        </td>
    </tr>
    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/changeteams/changeteam" var="changeteam">
        <c:choose>
            <c:when test="${index<10}">
                <c:set value="0" var="flag" scope="page"/>
            </c:when>
            <c:otherwise>
                <c:set value="" var="flag" scope="page"/>
            </c:otherwise>
        </c:choose>
        <tr>
            <td align="center">
                <input type="radio" class="radiobutton" name="changeselteams">
            </td>
            <td align="center">
                <span name="changeteams/changeteam[${flag}${index}]@seq_no"><x:out select="$changeteam/@seq_no"/></span>
            </td>

            <td align="center">
                <input name="changeteams/changeteam[${flag}${index}]/changename" label="姓名" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$changeteam/changename"/>"/>
            </td>
            <td align="center">
                <c:set var="changegender"><x:out select='$changeteam/changegender_value'/></c:set>
                <cpt:select id="changegender_${index}" name="changegender" key="gender"
                            onChange="initControlValue(this.id)"
                            value="${changegender }" className="common_select"></cpt:select>
                <input type="hidden" name="changeteams/changeteam[${flag}${index}]/changegender_value"
                       value="<x:out select='$changeteam/changegender_value' />" class="required" label="性别"/>
                <input type="hidden" name="changeteams/changeteam[${flag}${index}]/changegender_name"
                       value="<x:out select='$changeteam/changegender_name' />"/>
            </td>
            <td align="center">
                <input name="changeteams/changeteam[${flag}${index}]/changenationality" label="国籍" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$changeteam/changenationality"/>"/>
            </td>
            <td align="center">
                <c:set var="changebirth_date" scope="page"><x:out select="$changeteam/changebirth_date"/></c:set>
                <input id="changebirth_date_[${flag}${index}]" value="${changebirth_date}" label="出生年月" type="text"
                       name="changeteams/changeteam[${flag}${index}]/changebirth_date" style="width: 65%"
                       class="required input_css date beforeToday"
                />
            </td>
            <td align="center">
                <input name="changeteams/changeteam[${flag}${index}]/changedegree" label="学位" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$changeteam/changedegree"/>"/>
            </td>
            <td>
                <c:set var="changetitle">{'id':'<x:out select="$changeteam/changetitle_value"/>','name':'<x:out
                        select="$changeteam/changetitle_name"/>'}</c:set>
                <cpt:tree key="prof_title" cacheable="false" className="input_css" readonly="true"
                          value="${changetitle}"
                          label="职称" width="60%"
                          id="changetitle${flag}${index}" name="changetitle${flag}${index}" showPattern="current"
                          shieldPattern="0"
                          topCheckbox="false" onClick="initTreeValue2"/>
                <input type="hidden" id="changetitle${flag}${index}_value"
                       name="changeteams/changeteam[${flag}${index}]/changetitle_value"
                       class="required" value="<x:out select="$changeteam/changetitle_value" />" label="职称"/>
                <input type="hidden" id="changetitle${flag}${index}_name"
                       name="changeteams/changeteam[${flag}${index}]/changetitle_name"
                       value="<x:out select="$changeteam/changetitle_name" />"/>

            </td>

            <td align="center">
                <input name="changeteams/changeteam[${flag}${index}]/changepost" label="职务" type="text"
                       class="input_css required maxlength:100" style="width: 80%;" maxlength="100"
                       value="<x:out select="$changeteam/changepost"/>"/>
            </td>

            <td align="center">
                <input name="changeteams/changeteam[${flag}${index}]/changeresearch" label="研究领域" type="text"
                       class="input_css required maxlength:100" style="width:80%;" maxlength="100"
                       value="<x:out select="$changeteam/changeresearch"/>"/>
            </td>
            <td align="center">
                <input name="changeteams/changeteam[${flag}${index}]/change" label="增或减" type="text"
                       class="input_css required maxlength:100" style="width:65%;" maxlength="100"
                       value="<x:out select="$changeteam/change"/>"/>
            </td>
            <td align="center">
                <input name="changeteams/changeteam[${flag}${index}]/reason" label="变动原因" type="text"
                       class="input_css required maxlength:100" style="width:80%;" maxlength="100"
                       value="<x:out select="$changeteam/reason"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("teamInfochange");
    </script>
</table>
<br/>
<table border="0" cellpadding="0" cellspacing="1">
    <tr>
        <td>
            <input class="button_02" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('teamInfochange',99,'自首次立项扶持后团队核心成员变动情况最多只能填写99条')){addNewRow('teamInfochange');showDateTag('teamInfochange');}try{top.resizeFrame();}catch(e){};">
            <input class="button_02" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('teamInfochange','changeselteams')">
            <input class="button_02" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('teamInfochange','changeselteams')">
            <input class="button_02" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('teamInfochange','自首次立项扶持后团队核心成员变动情况')">
        </td>
    </tr>
</table>